﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestWCFService
{
    class Program
    {
        static void Main(string[] args)
        {
            // create a proxy
            ConnerA1P1Service.Service1Client wcf_proxy =
                new ConnerA1P1Service.Service1Client();

            // pi test
            double pi = wcf_proxy.PiValue();

            // abs tests
            int test1 = wcf_proxy.absValue(27);
            int test2 = wcf_proxy.absValue(-27);

            // add tests
            double add_test = wcf_proxy.add(2, 2);

            // subtract test
            double sub_test = wcf_proxy.subtract(2, 2);

            // write results to the console
            Console.WriteLine("Pi = {0}", pi);
            Console.WriteLine("ABS test results: (27 | {0}), (-27 | {1})", test1, test2);
            Console.WriteLine("Add Test results: (2 + 2) = {0}", add_test);
            Console.WriteLine("Subtract Test REsults: (2 - 2) = {0}", sub_test);

            wcf_proxy.Close();
            Console.WriteLine("Press <ENTER> to terminate");
            Console.ReadLine();

        }
    }
}
